cmake_minimum_required( VERSION 2.8 )


set( EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR} )

find_package( OpenGL )
find_package( SFML )

# -----------
# - LIBRARY -
# -----------
set( AER_PATH ${CMAKE_SOURCE_DIR}/../aer-engine/engine )
set( AER_INCLUDE_DIRS ${AER_PATH}/src )
set( AER_LIBRARY_DIRS ${AER_PATH}/bin )
include_directories( ${AER_INCLUDE_DIRS} )

set( AER_LIBRARY  ${AER_LIBRARY_DIRS}/libaerEngine.a )  # ~
set( GLEW_LIBRARY ${AER_LIBRARY_DIRS}/libGLEW.a )       # ~

set( THIRDPARTY_INCLUDE_DIRS ${AER_PATH}/thirdparty )
include_directories( ${THIRDPARTY_INCLUDE_DIRS} )



set( EXEC_NAME anima )

file( GLOB_RECURSE Sources src/*.cpp )
file( GLOB_RECURSE Headers src/*.hpp )

add_executable( ${EXEC_NAME} ${Sources} ${Headers} )

target_link_libraries( ${EXEC_NAME} ${AER_LIBRARY} )
target_link_libraries( ${EXEC_NAME} ${GLEW_LIBRARY} )
target_link_libraries( ${EXEC_NAME} ${OPENGL_gl_LIBRARY} )
target_link_libraries( ${EXEC_NAME} sfml-window )
target_link_libraries( ${EXEC_NAME} IL )
target_link_libraries( ${EXEC_NAME} assimp )
